package com.yuelan.apartment.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.yuelan.apartment.common.ApaEntity;
import com.yuelan.common.core.domain.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 房客信息
 * @Author: ZhaoYi
 * @date: 24-5-23 16:52
 */
@Data
@TableName("apa_tenant")
public class ApaTenant extends ApaEntity {

    private static final long serialVersionUID = 1L;

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;


    @TableField("room_num")
    private String roomNum;


    @TableField("apartment_id")
    private Long apartmentId;


    @TableField("tenant_name")
    private String TenantName;


    @TableField("phone")
    private String phone;


    @TableField("id_number")
    private String idNumber;


    @TableField("period_time")
    private Date periodTime;

}
